﻿<%@ Page Title="Forum" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Forum.aspx.vb" Inherits="Forum" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
    <p>
    </p>

    <asp:Table ID="Table1" runat="server" HorizontalAlign="Center" Width="105px">
            <asp:TableRow ID="TableRow1" runat="server" HorizontalAlign="Left">
                
                <asp:TableCell ID="TableCell1" runat="server" HorizontalAlign="Left">
                <a id="A1" href="~/" runat="server">
        <img src="~/Images/singlemom4.jpg" alt="Events Photo" runat="server"
             id="singlemomPhoto4"/>
             </a>
             <br />
                </asp:TableCell>
                <asp:TableCell ID="TableCell2" runat="server" HorizontalAlign="Right">
                <a id="A2" href="~/" runat="server">
        <img src="~/Images/singlemom6.jpg" alt="Events Photo" runat="server"
             id="singlemomPhoto6"/>
             </a>
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow2" runat="server" HorizontalAlign="Right">
                
            </asp:TableRow>
        </asp:Table>
        <br /> <p class="leadingStatement">
        See the list of Issues in our Forum. You can view or add to any issue! </p>
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" DataKeyNames="ID" 
        DataSourceID="SqlDataSource1" CssClass="gridview">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="ID" />
                <asp:BoundField DataField="Issue" HeaderText="Issue" SortExpression="Issue" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:BoundField DataField="Initiator" HeaderText="Initiator" 
                    SortExpression="Initiator" />
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="AddToForum.aspx?ID={0}" 
                    HeaderText="View/Add Comment" SortExpression="ID" Text="View/Add Comment" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SingleMomMemberConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:SingleMomMemberConnectionString.ProviderName %>" 
            SelectCommand="SELECT [ID], [Issue], [Description], [Initiator] FROM [Forum]">
        </asp:SqlDataSource>
    <p>
    </p>
</asp:Content>

